<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script type="text/javascript" src="js/mascara.js"></script>
<script src="visao/js/jquery-1.2.6.pack.js" type="text/javascript"></script>
<script src="visao/js/jquery.maskedinput-1.1.4.pack.js" type="text/javascript" ></script>
<script type="text/javascript">
	$(document).ready(function(){
		$("#telefone").mask("(99)9999-9999");
		$("#nome").focus();
                
	});
</script>
<script type="text/javascript">
function validaForm(){
	 //validar nome 
    d = document.cadastro;
    if (d.sugestao.value=="" || d.nome.value==""){
        alert("Preencha os campos \"Nome e Mensgem \"corretamente");
        //alertando caso o campo esteja vazio
        //document.getElementById('enome').style.display = 'block';
        //document.getElementById('nome').style.backgroundColor = '#FF6600';
        d.nome.focus();
        //return false;
    }
       
    if  ( d.sugestao.value=="" || d.nome.value==""){
        return false;
    }
    else{ 
    return true;
    }
}
</script>
<title>Contato</title>
</head>
<body>
	<div>
		<fieldset class="fieldset2">
                    <legend>Suporte</legend>
			<form name="cadastro" action="enviar" method="post" onsubmit="return validaForm();">
				<input type="hidden" name="operacao" value="sugestao" />
                                <table>
                                    <tr>
                                        <td>
                                            <span class="style1">Nome:&nbsp;</span><br/><input type="text" id="nome" name="nome" size="40" />
                                    </td>
                                    </tr>
                                    <tr>
                                        <td><span class="style1">Telefone: &nbsp;</span><br/> <input id="telefone" name="telefone" type="text" size="10" maxlength="14" /></td>
                                    </tr>
                                    <tr>
                                        <td><span class="style1">E-mail:&nbsp;</span><br/> <input type="text" name="email" id="email" size="30" /></td>
                                    </tr>
                                    <tr>
                                        <td><span class="style1">Mensagem:&nbsp;</span><br/><textarea name="mensagem" id="sugestao" cols="47" rows="7" ></textarea></td> 
                                    </tr>
                                    <tr>
                                        <td><span class="style1"><input type="submit" value="Enviar"/></span></td>
                                    </tr>
                                </table>
                        </form>
                    
		</fieldset>
            <fieldset class="fieldset2">
            <label>Alan: (69) 8421-5633</label><br/>
            </fieldset>
	</div>
</body>
</html>
